package fr.umlv.m2.jee.spij.persistence.education;

import fr.umlv.m2.jee.spij.framework.dao.IDAO;

import java.util.List;

/**
 *
 */
public interface IPartialDAO extends IDAO<Long, Partial> {

    /**
     * @param subject the partial subject.
     *
     * @return a Partial.
     */
    Partial findBySubject(String subject);

    /**
     * @param ldapActor the actor.
     * @param type      the type of actor.
     *
     * @return a list of Partial.
     */
    List<Partial> findByLdapActor(String ldapActor, String type);

    /**
     * @param unitId    the unit id.
     * @param ldapActor the ldap actor.
     * @param type      the type of actor.
     *
     * @return a list of Partial.
     */
    List<Partial> findByLdapActorAndUnitId(long unitId,
                                           String ldapActor,
                                           String type);
}
